// 左侧菜单导航数据
export const leftNavList = [
	{
		title: '组件',
		isOpen: true,
		children: [
			{
				modelId: 'start-node',
				icon: 'fa fa-circle-thin',
				name: '开始',
				type: 'start',
				form: [],
			},
			{
				modelId: 'end-node',
				icon: 'fa fa-circle',
				name: '结束',
				type: 'end',
				form: [],
			},
			{
				modelId: 'http-request',
				icon: 'fa fa-mixcloud',
				name: 'Http请求',
				type: 'node',
				form: [
					{
						type: 'select',
						label: '请求方法',
						prop: 'method',
						placeholder: '请选择请求方法',
						required: true,
						disabled: false,
						options: [
							{
								value: 'get',
								label: 'get',
							},
							{
								value: 'post',
								label: 'post',
							},
							{
								value: 'put',
								label: 'put',
							},
							{
								value: 'delete',
								label: 'delete',
							},
							{
								value: 'head',
								label: 'head',
							},
							{
								value: 'options',
								label: 'options',
							},
						],
					},
					{
						type: 'input',
						label: '请求地址',
						prop: 'url',
						placeholder: '请输入请求地址，请以http://或https:// 开头，支持JUEL表达式',
						required: true,
						disabled: false,
					},
					{
						type: 'input',
						label: 'Params',
						prop: 'params',
						placeholder: '请输入请求URL参数Params，id=1000&time=1649236726859，支持JUEL表达式',
						required: false,
						disabled: false,
					},
					{
						type: 'textarea',
						label: 'Body',
						prop: 'body',
						rows: 5,
						placeholder: '请输入请求体参数Body，{ "id" : 1000, "time" : 1649236726859 }，支持JUEL表达式',
						required: false,
						disabled: false,
					},
					{
						type: 'textarea',
						label: 'Headers',
						prop: 'headers',
						rows: 5,
						placeholder: '请输入请求头参数Header，{ "Content-Type" : "application/json" }，支持JUEL表达式',
						required: false,
						disabled: false,
					},
				],
				mark: [
					{
						label: '请求方法',
						value: 'method',
						remark: "支持JUEL表达式如：${ method == 'get' }"
					},
					{
						label: '请求地址',
						value: 'url',
						remark: '支持JUEL表达式如：${ url }'
					},
					{
						label: '请求参数',
						value: 'params',
						remark: '支持JUEL表达式如：${ params }'
					},
					{
						label: '请求内容',
						value: 'body',
						remark: '支持JUEL表达式如：${ body }'
					},
					{
						label: '请求头部',
						value: 'headers',
						remark: '支持JUEL表达式如：${ headers }'
					},
					{
						label: '响应状态',
						value: 'data.status',
						remark: "支持JUEL表达式如：${ data.status == 200 }"
					},
					{
						label: '响应消息',
						value: 'data.message',
						remark: '支持JUEL表达式如：${ data.message }'
					},
					{
						label: '响应头部',
						value: 'data.headers',
						remark: '支持JUEL表达式如：${ data.headers }'
					},
					{
						label: '响应内容',
						value: 'data.body',
						remark: '支持JUEL表达式如：${ data.body } 或 ${ data.body.** }'
					},
				]
			},
			{
				modelId: 'data-filter',
				icon: 'fa fa-cogs',
				name: '数据转换',
				type: 'node',
				form: [
					{
						type: 'textarea',
						label: '数据转换',
						prop: 'filter',
						placeholder: '请输入数据转换内容，如：{ "token" : "${ data.body.token }" } 支持JUEL表达式',
						required: true,
						disabled: false,
					},
				],
				mark: [
					{
						label: '数据转换',
						value: 'data',
						remark: "支持JUEL表达式如：${ data.body.token }"
					},
				]
			},
			{
				modelId: 'mobile-notice',
				icon: 'fa fa-mobile',
				name: '电话告警',
				type: 'node',
				form: [
					{
						type: 'input',
						label: '手机号码',
						prop: 'mobile',
						placeholder: '请输入手机号码，多个手机号码请用分号“ ; ”分割',
						required: true,
						disabled: false,
					},
					{
						type: 'textarea',
						label: '告警内容',
						prop: 'content',
						placeholder: '请输入告警内容，支持JUEL表达式',
						required: true,
						disabled: false,
					},
				],
				mark: [
					{
						label: '输出参数',
						value: '输出参数',
						remark: "输出参数为上一节点的输出参数"
					},
				]
			},
			{
				modelId: 'email-notice',
				icon: 'fa fa-envelope-o',
				name: '邮箱告警',
				type: 'node',
				form: [
					{
						type: 'input',
						label: '邮箱号码',
						prop: 'email',
						placeholder: '请输入邮箱号码，多个邮箱号码请用分号“ ; ”分割',
						required: true,
						disabled: false,
					},
					{
						type: 'input',
						label: '告警主题',
						prop: 'subject',
						placeholder: '请输入告警主题，支持JUEL表达式',
						required: true,
						disabled: false,
					},
					{
						type: 'textarea',
						label: '告警内容',
						prop: 'content',
						placeholder: '请输入告警内容，支持JUEL表达式',
						required: true,
						disabled: false,
					},
				],
				mark: [
					{
						label: '输出参数',
						value: '输出参数',
						remark: "输出参数为上一节点的输出参数"
					},
				]
			},
			{
				modelId: 'qiwei-notice',
				icon: 'fa fa-weixin',
				name: '企微告警',
				type: 'node',
				form: [
					{
						type: 'input',
						label: '企微秘钥',
						prop: 'key',
						placeholder: '请输入企业微信机器人秘钥',
						required: true,
						disabled: false,
					},
					{
						type: 'input',
						label: '手机号码',
						prop: 'mobile',
						placeholder: '请输入手机号码，多个邮箱号码请用分号“ ; ”分割',
						required: true,
						disabled: false,
					},
					{
						type: 'textarea',
						label: '告警内容',
						prop: 'content',
						placeholder: '请输入告警内容，支持JUEL表达式',
						required: true,
						disabled: false,
					},
				],
				mark: [
					{
						label: '输出参数',
						value: '输出参数',
						remark: "输出参数为上一节点的输出参数"
					},
				]
			},
		],
	},
];
